﻿using System;

using SBPweb.Modules.Communication;

namespace SBPweb.Modules.Communication
{
	/// <summary>
	/// Class of RequestMessageEventArgs
	/// </summary>
	/// <typeparam name="T"></typeparam>
    public class RequestMessageEventArgs<T> : MessageEventArgs
    {
		/// <summary>
		/// Constructor of RequestMessageEventArgs
		/// </summary>
		/// <param name="message"></param>
        public RequestMessageEventArgs(IRequestMessage<T> message)
            :base(message)
        {

        }

		/// <summary>
		/// Message
		/// </summary>
        public new IRequestMessage<T> Message
        {
            get
            {
                return (IRequestMessage<T>)pMessage;
            }
        }
    }
}